/**
 * User: dizemding
 * Time: 11-7-20 下午1:29
 */
$(document).ready(function() {
	$('#user_li').attr("class", "current")
	$("#dialog:ui-dialog").dialog("destroy");
	$("#dialog-mail").dialog({
		autoOpen: false,
		height: 390,
		width: 520,
		modal: true,
		show: "clip",
		hide: "slide",
		buttons: {
			"发送": function() {
				alert("发送成功!")
				$(this).dialog('close');
			},
			"关闭": function() {
				$(this).dialog('close');
			}
		}
	});
	$("#dialog-sms").dialog({
		autoOpen: false,
		height: 350,
		width: 520,
		modal: true,
		show: "clip",
		hide: "slide",
		buttons: {
			"发送": function() {
				alert("发送成功!")
				$(this).dialog('close');
			},
			"关闭": function() {
				$(this).dialog('close');
			}
		}
	});
});
function sendMail(address) {
	$('#txt_mail_to').val(address);
	$('#txt_title').val('18团购的来信');
	$('#txt_content').val('尊敬的用户:\n    您好:\n    ');
	$('#dialog-mail').dialog('open');
	return false;
}
function sendSMS(mobile) {
	$('#txt_mobile').val(mobile);
	$('#txt_content').val('尊敬的用户:\n    您好:\n    ');
	$('#dialog-sms').dialog('open');
	return false;
}
